package com.example.cuibo.myapplication;

/**
 * Created by cuibo on 2017/11/2.
 */

public class 反射 implements Fruit{
    @Override
    public void squeeze() {
        System.out.print("炸出一杯苹果汁");
    }
}

interface Fruit{
    public void squeeze();
}
class Orange implements Fruit{
    @Override
    public void squeeze() {
        System.out.print("炸出一杯橘子汁");
    }
}
class Juicer{
    public void run(Fruit f){
        f.squeeze();
    };
}